package com.geektime.hello.controller;

import com.geektime.hello.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("jackson")
public class JacksonController {

    @GetMapping("/")
    public User getUser() {
        User user = new User();
        user.setUserId(1L);
        user.setUsername("jackson");
        return user;
    }

}
